﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Lincolnwood.Foundation.SermonLibrary" namespace="Lincolnwood.Foundation.SermonLibrary" default-lazy="false">
  <class name="SermonSeries" table="SermonSeries">
    <id name="Id" access="field.camelcase-underscore">
      <generator class="guid"/>
    </id>
    <property name="Name" not-null="true"/>
    <property name="Description"/>
    <set name="Sermons" cascade="all" inverse="true" access="field.camelcase-underscore">
      <key column="SermonSeriesId"/>
      <one-to-many class="Sermon"/>
    </set>
    <property name="CreatedOn" not-null="true"/>
    <property name="CreatedBy"/>
    <property name="ModifiedOn"/>
    <property name="ModifiedBy"/>
  </class>
</hibernate-mapping>
